/** \file tim_contol.h contains the declaration for functions and variables of the tim_control component.
*/
#ifndef TIM_CONTROL_H
#define TIM_CONTROL_H
#include <avr/interrupt.h>
#include <avr/io.h>
#include "loc_types.h"



/************************/
/* Configuration Section*/
/************************/

/***********************/
/* Exported Constants. */
/***********************/

/** A macro to reset the Watchdog timer.
*/
#define TIM_vidRESET_WATCHDOG()					__asm__ ( "WDR" )															


/**	A macro to start the watchdog timer.

*/
#define TIM_vidENABLE_WATHDOG()			WDTCR = (u8)0x08
										
/*****************/
/* Exported Types*/
/*****************/


/*********************/
/* External Variables*/
/*********************/
volatile extern TYP_tu8Bool TIM_bBackgroundFlag;

/*********************/
/* External Functions*/
/*********************/


/** Initializes the system timers.
*/
extern void TIM_vidInit(void);



ISR(TIMER0_COMP_vect);
ISR(TIMER1_COMPA_vect);






#endif /*TIM_CONTROL_H*/
